﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GasolineSite;

namespace DbLibrary.Models
{
    public class User : Entity
    {
        private string _pasHash;

        public Int32 RoleId { get; set; }

        public string UserName { get; set; }

        public string Password
        {
            get { return _pasHash; }
            set { _pasHash = MD5Helper.GetMD5Hash(value); }
        }
    }
}
